package com.haorui.lygyd.employeemanager.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.employeemanager.entity.SchoolEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @support: 西安鑫正豪信息技术有限公司
 * @author: 系统生成
 * @version: 1.0
 * @Date: Wed Feb 27 00:27:07 CST 2019
 * @Description: 学校
 */
@Data
public class SchoolDto implements DataTransferObject<SchoolEntity> {

    private String id;
    @ApiModelProperty(value = "学校名称")
    private String sname;
    @ApiModelProperty(value = "备注")
    private String beizhu;


    @Override
    public SchoolEntity buildPO() {
        SchoolEntity schoolEntity = new SchoolEntity();
        BeanUtil.beanCopyIgnoreDefault(this, schoolEntity);
        return schoolEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
